Giter Site home page Giter Site logo

html-tidy-modelica's People

Contributors

dajansengit avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pema1

html-tidy-modelica's Issues

table summary

Tidy version used from travis CI throws a warning when tables have no summary attribute. Going to be fixed.

Error for view_html_errors.py

I receive the following error

(win64py36) D:\04_Git\HTML-Tidy-Modelica>python view_html_errors.py D:/04_Git/AixLib_branches/AixLib/AixLib/Utilities/HeatTransfer/HeatConv_inside.mo
  File "view_html_errors.py", line 195
    htmlCorrect, errors = tidy_document(f"{htmlStr}",
                                                   ^
SyntaxError: invalid syntax

& -> &amp

Seems like html tidy doesn't change & to &amp which causes an error. Going to be fixed soon.

Code for checking a single file

The current html_tidy.py will convert a whole package at once. This, however, will only work out as planned in simple cases. Moreover, the resulting code is not preferable in all the cases.

For example the code assumes:

  • That there are one or two html blocks in one .mo file. Which is not true as each doc-string may contain an html block.
  • That the second html block is the revisions part (if I am not mistaken). And that is also not necessarily the case.

Therefore, it is sometimes preferable to just have a look at a single file and get the errors and the corresponding code so that you can fix it manually.

The line numbers in the error message should be visible in the output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.