newline in xml comment

G

Guest

Hi there

I can document my classes by adding xml tags. Brilliant
I generate the help files (Tools/Build Comment Web Pages)

Sadly I see no way to add newlines to the document. Suppose I have the following comment

///<returns
/// --> true, if ..
/// --> false, if ..
///</returns

I'd like the HTML pages to show the two lines as 2 lines, not just 1 line. I tried adding a <br/> tag (and <br></br>) in the xml-content but that didn't work

/// --> true, if ... <br/

It just showed <br/> in the HTML file

Is this possible

Another question: is it possible to have the xml transformed to html in another way (different layout)

Thanks
Tom.
 
P

Philip Rieck

You can try :
&lt;br&gt;

Note that this is dependent on the XSLT you are using to create the web
pages.. the default ones with NDoc will allow <br/> and it will be a break
in the resulting html, if I remember correctly.

TT (Tom Tempelaere) said:
Hi there,

I can document my classes by adding xml tags. Brilliant.
I generate the help files (Tools/Build Comment Web Pages).

Sadly I see no way to add newlines to the document. Suppose I have the following comment:

///<returns>
/// --> true, if ...
/// --> false, if ...
///</returns>

I'd like the HTML pages to show the two lines as 2 lines, not just 1 line.
I tried adding a said:
/// --> true, if ... <br/>

It just showed <br/> in the HTML file.

Is this possible?

Another question: is it possible to have the xml transformed to html in
another way (different layout)?
 
T

TT \(Tom Tempelaere\)

TT (Tom Tempelaere) said:
message news:D[email protected]... [...]
I'd like the HTML pages to show the two lines as 2 lines, not just 1 line.
I tried adding a <br/> tag (and <br></br>) in the xml-content but that
didn't work.

/// --> true, if ... <br/>

It just showed <br/> in the HTML file.
[...]

Philip Rieck said:
You can try :
&lt;br&gt;

Note that this is dependent on the XSLT you are using to create the web
pages.. the default ones with NDoc will allow <br/> and it will be a break
in the resulting html, if I remember correctly.

I think I'm using the default xslt, because all I use is the command from
the menu, like I said.
I did try <br/> in the xml text and it didn't do what I want.
I'll try &lt;br&gt; and see what that gives.

Thanks,
 
T

TT \(Tom Tempelaere\)

It did not work. :(

---
Tom Tempelaere


TT (Tom Tempelaere) said:
message news:D[email protected]... [...]
I'd like the HTML pages to show the two lines as 2 lines, not just 1 line.
I tried adding a <br/> tag (and <br></br>) in the xml-content but that
didn't work.

/// --> true, if ... <br/>

It just showed <br/> in the HTML file.
[...]

Philip Rieck said:
You can try :
&lt;br&gt;

Note that this is dependent on the XSLT you are using to create the web
pages.. the default ones with NDoc will allow <br/> and it will be a break
in the resulting html, if I remember correctly.

I think I'm using the default xslt, because all I use is the command from
the menu, like I said.
I did try <br/> in the xml text and it didn't do what I want.
I'll try &lt;br&gt; and see what that gives.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top