Changeset d7349ff in tol


Ignore:
Timestamp:
May 12, 2012, 10:48:51 PM (14 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a72f642
Parents:
9042aac
Message:

refs #1414, portando solución desde la rama 3.1

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@4683 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/markuphelper.tcl

    r9042aac rd7349ff  
    5656  proc Verbatim { text } {
    5757    return [ string map {\n \n<br>} $text ]
     58  }
     59
     60  proc Preformatted { text } {
     61    variable markup
     62
     63    append markup "#pre\n"
     64    append markup "${text}\n"
     65    append markup "#unpre\n"
    5866  }
    5967
    … …  
    288296    }
    289297    BR
    290     LabelValue "Content" [ Verbatim [ Escape $_content ] ]
     298    if { $grammar eq "Text" } {
     299      Text "Content:" -tags b
     300      CR
     301      Preformatted $_content
     302    } else {
     303      LabelValue "Content" [ Verbatim [ Escape $_content ] ]
     304      BR
     305    }
    291306    if {$path ne ""} {
     307      LabelValue "Path" $path
    292308      BR
    293       LabelValue "Path" $path
    294309    }
    295310    if {$desc ne ""} {
    296       BR
    297311      Text "Description:" -tags b -br 1
    298312      Text \
Note: See TracChangeset for help on using the changeset viewer.