Mailinglist Archive: yast-commit (126 mails)

< Previous Next >
[yast-commit] r67622 - in /trunk/ncurses-pkg/src: NCPackageSelector.cc NCPkgPackageDetails.cc
Author: gs
Date: Wed Mar 14 11:34:54 2012
New Revision: 67622

URL: http://svn.opensuse.org/viewcvs/yast?rev=67622&view=rev
Log:
add <pre> tags to patch descriptions

Modified:
trunk/ncurses-pkg/src/NCPackageSelector.cc
trunk/ncurses-pkg/src/NCPkgPackageDetails.cc

Modified: trunk/ncurses-pkg/src/NCPackageSelector.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/NCPackageSelector.cc?rev=67622&r1=67621&r2=67622&view=diff
==============================================================================
--- trunk/ncurses-pkg/src/NCPackageSelector.cc (original)
+++ trunk/ncurses-pkg/src/NCPackageSelector.cc Wed Mar 14 11:34:54 2012
@@ -1343,7 +1343,7 @@

NCPopupInfo * info = new NCPopupInfo ( wpos( NCurses::lines()/10,
NCurses::cols()/10),
// headline of a popup showing the
package license
- string( _("End User License
Agreement") ),
+ _("End User License Agreement"),
"<i>" + pkgName + "</i><br><br>"
+ html_text,
NCPkgStrings::AcceptLabel(),

Modified: trunk/ncurses-pkg/src/NCPkgPackageDetails.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/NCPkgPackageDetails.cc?rev=67622&r1=67621&r2=67622&view=diff
==============================================================================
--- trunk/ncurses-pkg/src/NCPkgPackageDetails.cc (original)
+++ trunk/ncurses-pkg/src/NCPkgPackageDetails.cc Wed Mar 14 11:34:54 2012
@@ -415,8 +415,19 @@

// get and format the patch description
string value = patchPtr->description();
+ string html_text = "";
+ const string htmlIdent(DOCTYPETAG);
+
+ if ( value.find( htmlIdent ) != string::npos )
+ {
+ html_text = value; // HTML text
+ }
+ else
+ {
+ html_text = "<pre>" + value + "</pre>"; // add <pre> to preserve
newlines and spaces
+ }

- descr += createHtmlText( value );
+ descr += html_text;

descr += _("References:<br>");
for ( Patch::ReferenceIterator rit = patchPtr->referencesBegin();

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages