Update of /cvsroot/mahogany/M/src/modules
In directory usw-pr-cvs1:/tmp/cvs-serv8129/src/modules

Modified Files:
        HtmlViewer.cpp TextViewer.cpp 
Log Message:
fixes for showing the URLs in the headers for the non-text viewers

Index: HtmlViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/HtmlViewer.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -b -u -2 -r1.35 -r1.36
--- HtmlViewer.cpp      3 May 2002 17:01:07 -0000       1.35
+++ HtmlViewer.cpp      3 May 2002 19:06:42 -0000       1.36
@@ -744,5 +744,6 @@
    FontColourChanger colChanger(GetOptions().HeaderNameCol, m_htmlText);
 
-   m_htmlText << "<tt>" << name << ":&nbsp;</tt>";
+   // second column will be for the header values
+   m_htmlText << "<tt>" << name << ":&nbsp;</tt></td><td>";
 }
 
@@ -750,7 +751,4 @@
                                  wxFontEncoding encoding)
 {
-   // second column: header values
-   m_htmlText += "</td><td>";
-
    FontColourChanger colChanger(GetOptions().HeaderValueCol, m_htmlText);
 

Index: TextViewer.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/TextViewer.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -b -u -2 -r1.31 -r1.32
--- TextViewer.cpp      3 May 2002 17:01:07 -0000       1.31
+++ TextViewer.cpp      3 May 2002 19:06:42 -0000       1.32
@@ -587,5 +587,5 @@
 void TextViewer::InsertURL(const String& text, const String& url)
 {
-   m_window->InsertClickable(url, new ClickableInfo(url), GetOptions().UrlCol);
+   m_window->InsertClickable(text, new ClickableInfo(url), GetOptions().UrlCol);
 }
 


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to