#3728 closed enhancement (fixed)
Enable loading of style sheets from file systems
| Reported by: | Dietmar Winkler | Owned by: | Adeel Asghar |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.4 |
| Component: | OMEdit | Version: | v1.9.4-dev-nightly |
| Keywords: | css | Cc: |
Description
Related to #3311 one thing that is missing now is the loading from style sheets.
Example:
package Q model M annotation(Documentation(info = "<html> <h4>I should be a red heading</h4> </html>")); end M; annotation(Documentation(__OpenModelica_infoHeader=" <link href=\"modelica://Q/style.css\" rel=\"stylesheet\" type=\"text/css\"> ")); end Q;
with style.css:
h4 {
color : red
}
Currently the modelica:// URI is not correctly converted. Output on my machine for Q.M is:
<html>
<head>
<link href="modelica:///Q/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<h2>Q.M</h2><p style="font-size:12px;"><strong><u>Information</u></strong></p>
<h4>I should be a red heading</h4>
</body>
</html>
Note:
See TracTickets
for help on using tickets.

Done in 608efb7/OMEdit.