Opened 15 years ago

Closed 15 years ago

#77 closed task (fixed)

html generator

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: major Milestone: 0.5
Component: output Version: trunk
Keywords: Cc:

Description (last modified by Peter Johansson)

A function like: void html(istream&, ostream&, char delim='\n')

The function parses through the istream until delim is found. For most characters the character is copied into ostream. However, some exceptions which include:

" becomes \"

\n becomes <br/>

< becomes &lt;

becomes &gt;

& becomes &amp;

\t becomes &nbsp; &nbsp; (or should we follow the more standard of four spaces for a tab?)

This is needed for ref #62.

Change History (3)

comment:1 Changed 15 years ago by Peter Johansson

Description: modified (diff)

comment:2 Changed 15 years ago by Peter Johansson

Status: newassigned

comment:3 Changed 15 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(In [178]) fixes #77 text to html translator

Note: See TracTickets for help on using tickets.