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

line-breaking of URLs in references #168

Closed
ietf-svn-bot opened this issue May 9, 2013 · 5 comments
Closed

line-breaking of URLs in references #168

ietf-svn-bot opened this issue May 9, 2013 · 5 comments
Labels

Comments

@ietf-svn-bot
Copy link

owner:ietf@augustcellars.com resolution_fixed type_defect | by arusso@amsl.com


For reference elements where the target contains a URL, I think the output (txt and nroff) would ideally be as follows.

  • if the URL fits on one line, put it on its own line.
  • if the URL doesn't fit on one line, put line breaks after "/" (rather than mid-word or after "-").
  • no line break after <http://.
  • each URL on as few lines as possible.

(Fyi, Changeset 743 has to do with line breaking of URLs in references; I'm not sure if/how it relates to the points above.)

Examples below are from the attached XML.

v2 output (bad):
   [OASIS-SAMLv2-CORE]
              Cantor, S., Ed., Kemp, J., Ed., Philpott, R., Ed., and E.
              Maler, Ed., "Assertions and Protocols for the OASIS
              Security Assertion Markup Language (SAML) V2.0", OASIS
              Standard saml-core-2.0-os, March 2005, <http://docs.oasis-
              open.org/security/saml/v2.0/saml-core-2.0-os.pdf>.

Desired output:
   [OASIS-SAMLv2-CORE]
              Cantor, S., Ed., Kemp, J., Ed., Philpott, R., Ed., and E.
              Maler, Ed., "Assertions and Protocols for the OASIS
              Security Assertion Markup Language (SAML) V2.0", OASIS
              Standard saml-core-2.0-os, March 2005, 
              <http://docs.oasis-open.org/security/saml/v2.0/
              saml-core-2.0-os.pdf>.


v1 output (also bad, btw):
   [OASIS-SAMLv2-CORE]
              Cantor, S., Ed., Kemp, J., Ed., Philpott, R., Ed., and E.
              Maler, Ed., "Assertions and Protocols for the OASIS
              Security Assertion Markup Language (SAML) V2.0", OASIS
              Standard saml-core-2.0-os, March 2005, <http://
              docs.oasis-open.org/security/saml/v2.0/
              saml-core-2.0-os.pdf>.

There's also an issue where the v2 nroff output does not match the v2 txt output, and the output creates a line over 72 chars:

v2 text (OK):
   [WEBER]    Weber, C., "Attacking Software Globalization", March 2010,
              <http://www.lookout.net/files/
              Chris_Weber_Character%20Transformations%20v1.7_IUC33.pdf>.

v2 nroff (bad):
.ti 3
[WEBER]    Weber, C., "Attacking Software Globalization", March 2010,
<http://www.lookout.net/files/Chris_Weber_Character%20Transformations
%20v1.7_IUC33.pdf>.

which yields text that's over 72 chars. 

Desired nroff (in order to match v2 text):
.ti 3
[WEBER]    Weber, C., "Attacking Software Globalization", March 2010,
<http://www.lookout.net/file/
.br
Chris_Weber_Character%20Transformations%20v1.7_IUC33.pdf>.

Side note about the XML: turning the rfcedstyle PI off and on around the references section is a work-around in order to get it to make the indentation less when there are long anchors.


Issue migrated from trac:168 at 2022-02-05 12:32:42 +0000

@ietf-svn-bot
Copy link
Author

@arusso@amsl.com uploaded file test6943.xml (65.2 KiB)

@ietf-svn-bot
Copy link
Author

@ietf@augustcellars.com changed owner from henrik@levkowetz.com to ietf@augustcellars.com

@ietf-svn-bot
Copy link
Author

@ietf@augustcellars.com changed status from new to closed

@ietf-svn-bot
Copy link
Author

@ietf@augustcellars.com changed resolution from `` to fixed

@ietf-svn-bot
Copy link
Author

@ietf@augustcellars.com commented


Fixed in 1052

The algorithm for wrapping of URLs is now different than it was. We now insert a zero-width breaking space (&zwsp;) after slashes (except the leading two) and use word joins (&wj;) after the hyphens (and the leading slashes). The line wrapping algorithm will break first on normal spaces, then on the zwsp and then on the wj. It will only use the latter two elements if the URL is too long to fit into a single line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant