Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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>

Change History (4)

comment:1 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: newclosed

Done in 608efb7/OMEdit.

comment:2 by Dietmar Winkler, 9 years ago

Confirmed. Thanks.

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.