diff zpt/viewer_text.zpt @ 530:5c7433c2515c

fix problems with texttool/text
author casties
date Thu, 26 Apr 2012 19:37:15 +0200
parents 3f375a048402
children 0b8bed1223ad
line wrap: on
line diff
--- a/zpt/viewer_text.zpt	Thu Apr 26 14:45:05 2012 +0200
+++ b/zpt/viewer_text.zpt	Thu Apr 26 19:37:15 2012 +0200
@@ -34,7 +34,7 @@
 </head>
 <body tal:condition="numPages">
   <tal:block
-    tal:define="docpath docinfo/textURLPath;
+    tal:define="docpath docinfo/textURLPath | nothing;
                 pn pageinfo/pn; 
                 flowLtr python:docinfo.get('pageFlow','ltr')!='rtl';
                 textPage python:here.getTextPage(mode=viewLayer, pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';">