Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML errors in FundamentalWave #1107

Closed
modelica-trac-importer opened this issue Jan 14, 2017 · 4 comments
Closed

HTML errors in FundamentalWave #1107

modelica-trac-importer opened this issue Jan 14, 2017 · 4 comments
Assignees
Labels
bug Critical/severe issue L: Magnetic.FundamentalWave Issue addresses Modelica.Magnetic.FundamentalWave worksforme Clarified issue
Milestone

Comments

@modelica-trac-importer
Copy link

Reported by dietmarw on 16 May 2013 08:15 UTC
The current version of HTML documentation in FundamentalWave contains the following errors (taken from tidy.filtered file that is generated by OpenModelica on a daily basis)

[Checking file Modelica.Magnetic.FundamentalWave.UsersGuide.MultiPhase.html]:
line 26 column 7 - Warning: replacing unexpected b by </b>
line 26 column 62 - Warning: inserting implicit <font>
line 27 column 4 - Warning: inserting implicit <font>
line 28 column 4 - Warning: inserting implicit <font>
line 29 column 4 - Warning: inserting implicit <font>
line 30 column 4 - Warning: inserting implicit <font>
line 31 column 4 - Warning: inserting implicit <font>
line 32 column 4 - Warning: inserting implicit <font>
line 33 column 4 - Warning: inserting implicit <font>
line 34 column 4 - Warning: inserting implicit <font>
line 39 column 4 - Warning: inserting implicit <font>
line 44 column 4 - Warning: inserting implicit <font>
line 44 column 4 - Warning: missing </font> before <h4>
line 44 column 13 - Warning: inserting implicit <font>
line 44 column 22 - Warning: inserting implicit <p>
line 45 column 4 - Warning: inserting implicit <font>
line 47 column 2 - Warning: inserting implicit <font>
line 26 column 62 - Warning: trimming empty <font>
line 44 column 22 - Warning: trimming empty <p>
[Checking file Modelica.Magnetic.FundamentalWave.UsersGuide.Parameters.html]:
line 44 column 87 - Warning: inserting implicit <p>
line 44 column 87 - Warning: trimming empty <p>
\--
[Checking file Modelica.Magnetic.FundamentalWave.UsersGuide.html]:
line 25 column 1 - Warning: inserting implicit <p>
line 19 column 1 - Warning: trimming empty <p>
line 25 column 1 - Warning: trimming empty <p>

Migrated-From: https://trac.modelica.org/Modelica/ticket/1107

@modelica-trac-importer modelica-trac-importer added this to the MSL3.2.1 milestone Jan 14, 2017
@modelica-trac-importer modelica-trac-importer added bug Critical/severe issue L: Magnetic.FundamentalWave Issue addresses Modelica.Magnetic.FundamentalWave labels Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Comment by christiankral on 18 May 2013 19:45 UTC
Replying to [ticket:1107 dietmarw]:

The current version of HTML documentation in FundamentalWave contains the following errors (taken from tidy.filtered file that is generated by OpenModelica on a daily basis)

[Checking file Modelica.Magnetic.FundamentalWave.UsersGuide.MultiPhase.html]:
line 26 column 7 - Warning: replacing unexpected b by </b>

Personally, I cannot access Modelica.Magnetic.FundamentalWave.UsersGuide.MultiPhase.html (where is it located on the OpenModelica SVN repository or similar?). So I assume that line 26 of such HTML file means the following: If I store the HTML documentation of the affected Modelica class in a separate text file, then line 1 starts with <html>. Counting from there to line 26 does neither show me an unexpected b nor can I see a missing </b> which shall be inserted.

line 26 column 62 - Warning: inserting implicit

How shall I interpret this message? <font> is not recommended in Modelica.UsersGuide.Conventions.Documentation at all.

line 27 column 4 - Warning: inserting implicit
line 28 column 4 - Warning: inserting implicit
line 29 column 4 - Warning: inserting implicit
line 30 column 4 - Warning: inserting implicit
line 31 column 4 - Warning: inserting implicit
line 32 column 4 - Warning: inserting implicit
line 33 column 4 - Warning: inserting implicit
line 34 column 4 - Warning: inserting implicit
line 39 column 4 - Warning: inserting implicit
line 44 column 4 - Warning: inserting implicit
line 44 column 4 - Warning: missing before


line 44 column 13 - Warning: inserting implicit
line 44 column 22 - Warning: inserting implicit


line 45 column 4 - Warning: inserting implicit
line 47 column 2 - Warning: inserting implicit
line 26 column 62 - Warning: trimming empty
line 44 column 22 - Warning: trimming empty


[Checking file Modelica.Magnetic.FundamentalWave.UsersGuide.Parameters.html]:
line 44 column 87 - Warning: inserting implicit


line 44 column 87 - Warning: trimming empty

What is the rule on line 44 that we are not following?

--
[Checking file Modelica.Magnetic.FundamentalWave.UsersGuide.html]:
line 25 column 1 - Warning: inserting implicit


line 19 column 1 - Warning: trimming empty


line 25 column 1 - Warning: trimming empty

However, the recommended formatting of enumerated figures -- see Modelica.UsersGuide.Conventions.Documentation.Format.Figures -- has been incorporated in Modelica.Magnetic.FundamentalWave.UsersGuide.MultiPhase

@modelica-trac-importer
Copy link
Author

Comment by christiankral on 18 May 2013 19:53 UTC
See da8db5e.

@modelica-trac-importer
Copy link
Author

Comment by dietmarw on 18 May 2013 21:49 UTC
Replying to [comment:1 christiankral]:

Personally, I cannot access Modelica.Magnetic.FundamentalWave.UsersGuide.MultiPhase.html (where is it located on the OpenModelica SVN repository or similar?). So I assume that line 26 of such HTML file means the following: If I store the HTML documentation of the affected Modelica class in a separate text file, then line 1 starts with <html>. Counting from there to line 26 does neither show me an unexpected b nor can I see a missing </b> which shall be inserted.

The reported line numbers refer to the HTML that is extracted by OpenModelica's HTML generator. Basically this is just an indicator for what you need to look out. You can simply access the generated HTML documentation by browsing along starting from https://build.openmodelica.org/Documentation/. However you need to be aware that those HTML files will have been fixed by Tidy already but at least you can see what the HTML code was changed into.

You can and should not use the exported HTML of Dymola as reference since that one adds loads of HTML errors in addition unfortunately.

What I normally do is simply counting the lines with the modelica info field of the respective class. This normally is almost in the right region. Then do a simple search for what ever was the offending tag. This normally works out quite nicely. To check if you found all errors you will either have to wait until next OpenModelica has rebuild the documentation (I think about once a day) or you can run my modified version locally on a Linux machine https://svn.modelica.org/projects/Modelica/branches/tools/MSLrelease/

What is the rule on line 44 that we are not following?

All errors reported are real HTML issues and have nothing to do with any rule or guideline that we have defined in the User's Guide. So the errors reported are simply errors in the HTML syntax that need fixing.

I just ran the check locally on my machine and it seems you managed to fix it anyway :-)

@modelica-trac-importer
Copy link
Author

Comment by dietmarw on 18 May 2013 22:59 UTC
Replying to [comment:3 dietmarw]:

I just ran the check locally on my machine and it seems you managed to fix it anyway :-)

This wasn't entirely true. There was one tiny bit left that needed fixing.
FIXED in ffcdfc9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Magnetic.FundamentalWave Issue addresses Modelica.Magnetic.FundamentalWave worksforme Clarified issue
Projects
None yet
Development

No branches or pull requests

5 participants