# HG changeset patch # User Ruslan Ermilov # Date 1319205634 0 # Node ID 523a80fc32b426ffcabf0518197bfa239ece5a87 # Parent 5530e24f9d58ed7110f124588cb67427c9c3897c Fixed a fallout from switching to standard HTML. diff -r 5530e24f9d58 -r 523a80fc32b4 xsls/news.xsls --- a/xsls/news.xsls Fri Oct 21 09:51:45 2011 +0000 +++ b/xsls/news.xsls Fri Oct 21 14:00:34 2011 +0000 @@ -45,21 +45,25 @@ X:var year = { !{substring(../event[position()=1]/@date, 1, 4)} } X:var y = { !{substring(@date, 1, 4)} } - X:if "(not($YEAR) and ($year = $y or position() < 11)) or $YEAR=$y" { - + X:if "position() = 1" { + X:text disable-output-escaping="yes" { + <table class="news"> + } + } + X:if "(not($YEAR) and ($year = $y or position() < 11)) or $YEAR=$y" { - + } - - -
+ !{@date} X:text {  } !! "para";
- X:text disable-output-escaping="yes" {&nbsp;} -
+ X:if "position() = last()" { + X:text disable-output-escaping="yes" { + </table> + } } } diff -r 5530e24f9d58 -r 523a80fc32b4 xsls/style.xsls --- a/xsls/style.xsls Fri Oct 21 09:51:45 2011 +0000 +++ b/xsls/style.xsls Fri Oct 21 14:00:34 2011 +0000 @@ -6,6 +6,8 @@ html { -webkit-text-size-adjust: none; } body { font-family: Georgia, serif; } p { text-align: justify; } + table.news p { margin-top: 0; } + table.news td { vertical-align: top; } div.directive { background: #EEEEEE; padding: 10pt 10pt 10pt 20pt; } div.directive td { vertical-align: baseline; }