Skip to content

Commit 06d1612

Browse files
docs/samples/story-write*.py: minor changes.
1 parent ab906bc commit 06d1612

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/samples/story-write-stabilized.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ def contentfn(positions):
8484

8585
out_path = __file__.replace('.py', '.pdf')
8686
writer = fitz.DocumentWriter(out_path)
87-
fitz.Story.write_stabilized(writer, contentfn, rectfn, add_header_ids=0)
87+
fitz.Story.write_stabilized(writer, contentfn, rectfn)
8888
writer.close()

docs/samples/story-write.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
import fitz
1414

1515

16+
# Create html containing multiple copies of our own source code.
17+
#
1618
with open(__file__) as f:
1719
text = f.read()
18-
1920
text = html.escape(text)
20-
2121
html = f'''
2222
<!DOCTYPE html>
2323
<body>

0 commit comments

Comments
 (0)