Browse Source

Potential fix for placeholder characters ending up in print preview and causing problems when pasted into other application.

Now the placeholder chars are being removed.
Dan Helfman 9 years ago
parent
commit
3cfda05d4a
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      plugins/export_print/Print_notes.py

+ 1
- 0
plugins/export_print/Print_notes.py View File

@@ -11,6 +11,7 @@ class Print_notes( Html ):
11 11
     # relink all note links so they point to named anchors within the page
12 12
     for note in notes:
13 13
       contents = self.NOTE_LINK_PATTERN.sub( r'<a href="#note_\1">', note.contents )
14
+      contents = contents.replace( u"\u200B", u"" ) # Nuke any placeholder chars.
14 15
       relinked_notes[ note.object_id ] = contents
15 16
 
16 17
     Html.__init__(

Loading…
Cancel
Save