Changeset 179


Ignore:
Timestamp:
Sep 2, 2006, 7:18:54 AM (13 years ago)
Author:
Peter Johansson
Message:

added support for åäöÅÄÖé in html generator

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/html_utility.cc

    r178 r179  
    6969      else if (c=='\t')
    7070        os << "&nbsp;&nbsp;";
     71      else if (c=='å')
     72        os << "&aring;";
     73      else if (c=='ä')
     74        os << "&auml;";
     75      else if (c=='ö')
     76        os << "&ouml;";
     77      else if (c=='Å')
     78        os << "&Aring;";
     79      else if (c=='Ä')
     80        os << "&Auml;";
     81      else if (c=='Ö')
     82        os << "&Ouml;";
     83      else if (c=='é')
     84        os << "&eacute;";
    7185      else
    7286        os << c;
  • trunk/lib/html_utility.h

    r178 r179  
    4747  ///
    4848  /// Function translating text to html format. Most character are
    49   /// just passing through (unary operation). The exceptions are:
    50   /// " becomes \"
    51   /// ' becomes \'
    52   /// \n becomes <br/>
    53   /// < becomes &lt;
    54   /// > becomes &gt;
    55   /// & becomes &amp;
    56   /// \t becomes &nbsp; &nbsp;
     49  /// just passing through (unary operation).
    5750  ///
    5851  void html(std::istream&, std::ostream&, char delim='\n');
Note: See TracChangeset for help on using the changeset viewer.