Fix some HTML help output glitches #194
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The HTML output of the help has a number of problems which are fixed with the change of the lroff2html parser in this PR:
<!DOCTYPE html>
)<!-- comment -->
, not with<! comment >
NAME
attribute of<A>
is deprecated and should be replaced byID
, not necessarily of an<A>
tag.<P>
tags, not witl<UL>
tags<P>
,<PRE>
,<DL>
tags<DL>
tags were armed with an anchor. This is reduced to only the first level.Using a simple validating parser (
lxml.etree.HTMLParser
), this helped to find a number of problems in the.hlp
files:<tt>
here)They are also all corrected.
With these changes, the output of a correct input file is (almost) correct. The only remaining systematic problem is that still some
<DL>
tags have the same id. This is due to the simple logic behind them: the id is just the first word of the term, which is not unique f.e. in the REVISIONS section (there the first word is always the task name).The resulting (user oriented) HTML help pages are here: https://iraf.readthedocs.io/