Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent line break within citation in PDF output #685

Closed
ietf-svn-bot opened this issue Oct 29, 2021 · 5 comments · Fixed by #1114
Closed

prevent line break within citation in PDF output #685

ietf-svn-bot opened this issue Oct 29, 2021 · 5 comments · Fixed by #1114
Labels
minor pdf Issues in PDF output rfc waiting An RFC-to-be is in the "Tools Issue" state and cannot be published until the issue is resolved

Comments

@ietf-svn-bot
Copy link

ietf-svn-bot commented Oct 29, 2021

type_defect | by arusso@amsl.com


In PDF output, it should keep together an xref's target, i.e., prevent a line break in the string of citation. Example: there's a line break in "[BT.709-6]" after the period; screenshot attached. In context, it's on page 18 of RFC 9134 (https://www.rfc-editor.org/rfc/rfc9134.pdf) - it's the PDF rendering of an <xref> in a <t> in a <dd>. Using v3.10.0.


Issue migrated from trac:685 at 2022-02-08 07:18:05 +0000

@ietf-svn-bot
Copy link
Author

@arusso@amsl.com uploaded file linebreak.png (76.8 KiB)

linebreak.png

@kesara kesara removed the new label Jun 19, 2022
@alicerusso
Copy link

alicerusso commented Sep 20, 2023

Another example of this issue. The undesired line break appears within [G.9959] in this PDF (page 4).

https://www.rfc-editor.org/v3test/test9453.pdf
https://www.rfc-editor.org/v3test/test9453.xml (source)

example9453

@cabo
Copy link
Contributor

cabo commented Sep 20, 2023

What should the rules for line-breaking/hyphenation of xrefs be? There are many ugly long anchors that clearly need to be line-broken, so where should it stop? Breaking off three characters is not very nice, but [BT. are four characters...
Should it be possible to manually mark an anchor as non-breaking, so this can be done as a tweak?
(The tweak could be in bib.ietf.org.)

@lbartholomew-rpc
Copy link

lbartholomew-rpc commented Feb 23, 2024

This issue also occurs in tables (e.g., see the latter portion of Table 1 on https://www.rfc-editor.org/authors/rfc9423.pdf). The fix needs to be universal (i.e., no breaks in citation strings within paragraph, list, or table markers).

@kesara kesara added pdf Issues in PDF output and removed component: v3 vocabulary labels Feb 25, 2024
@ajeanmahoney ajeanmahoney added the rfc waiting An RFC-to-be is in the "Tools Issue" state and cannot be published until the issue is resolved label Feb 28, 2024
@ajeanmahoney
Copy link
Collaborator

There is an RFC in TI state waiting on this issue (not urgent, though, as the IANA registry is already set up):
https://mailarchive.ietf.org/arch/msg/auth48archive/_keJFlsF6PkzqNg7LeVq4CIi-eE/

kesara added a commit to kesara/xml2rfc that referenced this issue Mar 15, 2024
kesara added a commit that referenced this issue Mar 18, 2024
* fix: Avoid breaking citation labels

Fixes #685
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor pdf Issues in PDF output rfc waiting An RFC-to-be is in the "Tools Issue" state and cannot be published until the issue is resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants