Fossil SCM

Rendering of tags <pre> and <verbatim> not correct

Fixed

aee2a1a927f8522… · opened 17 years, 8 months ago

Type
Code_Defect
Priority
Immediate
Severity
Minor
Resolution
Fixed
Subsystem
one
Created
July 24, 2008 6:45 a.m.

If you try to add following text in the sandbox, the resulting rendering is IMO not correct (please insert two spaces in front of every non-blank line in the sample below -- the sample should consists of 7 lines including the "pre" tags)


<pre>
This section encapsulated with <verbatim><pre></verbatim> will not be handled correctly

... if it does go over more ...

... than one line ...
</pre>


The inner "pre" is encapsulated within "verbatim" it still influence the rendering. And although the whole text is encapsulated within "pre", the first line will be rendered differently from the second and third one.


drh added on 2008-07-24 12:35:28:
I content that the <verbatim> rendering is correct and that it is your expectation of wha <verbatim> is suppose to do that is wrong. To this end, I have attempted to clarify the documentation on <verbatim>:

The <verbatim> tag works like <pre> with the addition that it also disables all wiki and HTML markup through the matching </verbatim>.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button