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

differences between v1 and v2 #70

Closed
ietf-svn-bot opened this issue Nov 7, 2012 · 11 comments
Closed

differences between v1 and v2 #70

ietf-svn-bot opened this issue Nov 7, 2012 · 11 comments
Labels

Comments

@ietf-svn-bot
Copy link

owner:henrik@levkowetz.com resolution_fixed type_defect | by miek@miek.nl


Please see this thread of the differences between xml2rfc 1.36 and xml2rfc 2.3.9.

http://www.ietf.org/mail-archive/web/xml2rfc/current/msg03493.html


Issue migrated from trac:70 at 2022-02-05 12:26:12 +0000

@ietf-svn-bot
Copy link
Author

@miek@miek.nl commented


The hangindent "issue" seems to be caused by line 160 in xml2rfc 2.3.9 inxml2rfc/writers/raw_txt.py:

157 elif style == 'hanging':
158 bullet = element.attrib.get('hangText', '')
159 if len(bullet) < hangIndent:
160 # Insert whitespace up to hangIndent
161 bullet = bullet.ljust(hangIndent)
162 else:
163 # Insert a single space
164 bullet += ' '

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed owner from jbothun@concentricsky.com to henrik@levkowetz.com

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


Summary of differences, taken from the given link:

  • The ToC does not start on a new page in v2. (Don't know if that is a setting).

  • The underscore settings of spanx elements, changed from bla to -bla-, I like the latter, but still its a change.

  • In section "Multiple paragraphs in a list.", I fake multiple paragraphs in a list with a . In v1 the new "para" is indented, in v2 it is not indented (line 787).

  • If you look for 'A lowercase roman list.' you see that '' isn't supported (line 810).

  • If you look for 'An uppercase roman list.' you see that, "' in v1 displays as "(1) Item1" and in v2 as "(1 )Item1" (line 816).

  • '' is allowed in v1 (was a hidden feature, but still). It shows "A. First item", in v2 it convers to "%C.First item" and a warning (line 850).

  • If you look for "List with a sublist with a paragraph above the sublist", you get a nice indented sublist with A. and B. as list items. In v2 it isn't indented and the listitems are numbered with a. and b. (line 878).

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed priority from major to medium

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


From d7c7e99:

Make in a hangindent list reset the indentation to the hang-indent, even if the bullet text is longer than the hang-indent. Addresses issue #70.

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


From 98f4e12:

Change spanx emphasis back to this instead of -this-, matching the v1 behaviour. Addresses issue #70.

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


Checking the behaviour for hangindent lists, the current behaviour matches what's desired, in 2.3.11.

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


Checking the various formatting specifications mentioned, %i, %C, (%d), now also work as expected (in 2.3.11)

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed status from new to closed

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com changed resolution from `` to fixed

@ietf-svn-bot
Copy link
Author

@henrik@levkowetz.com commented


Closed with commit d0ed0b2.

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