Skip to content

Commit a52951e

Browse files
Merge pull request #15 from latex3/develop
avoid blank line before </PDF>
2 parents efe6254 + 063b964 commit a52951e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

show-pdf-tags/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Print structure element hierarchy for Tagged PDF
22

3-
show-pdf-tags version 1.4
3+
show-pdf-tags version 1.5
44

55
Print a plain text or XML tree representing the structure of tagged PDF files.
66

show-pdf-tags/show-pdf-tags.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env texlua
22

3-
local show_pdf_tags_version = "1.4"
3+
local show_pdf_tags_version = "1.5"
44

55
kpse.set_program_name'lualatex'
66

@@ -701,9 +701,9 @@ local function print_tree_xml(tree, ctx)
701701
end
702702
print ("<PDF>\n <StructTreeRoot>")
703703
recurse(tree, ' ', '', '', ' ')
704-
print (" </StructTreeRoot>\n")
704+
print (" </StructTreeRoot>")
705705
if show_xmp then
706-
print(" <XMP>\n" ..pdfe.readwholestream(ctx.xmp,true):gsub("\n[ \n]*\n","\n") .. "\n </XMP>\n")
706+
print(" <XMP>\n" ..pdfe.readwholestream(ctx.xmp,true):gsub("\n[ \n]*\n","\n") .. "\n </XMP>")
707707
end
708708
print ("</PDF>")
709709
return

0 commit comments

Comments
 (0)