-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
rst2html: Extend the field_name_limit to 50 #306
rst2html: Extend the field_name_limit to 50 #306
Conversation
Thanks for the pull request! I think that makes sense. Do you mind adding the example to /cc @gjtorikian @vmg |
Field lists are rendered weirdly in reST if the field name is longer that 14 characters. In this case the table cell where the field name is gets a colspan=2. For example this: ```rest :123456789012345: too long, colspan=2 :12345678901234: OK ``` Gets translated to: ```html <table class="docinfo" frame="void" rules="none"> <col class="docinfo-name" /> <col class="docinfo-content" /> <tbody valign="top"> <tr class="field"><th class="docinfo-name" colspan="2">123456789012345:</th></tr> <tr class="field"><td> </td><td class="field-body">too long, colspan=2</td> </tr> <tr class="field"><th class="docinfo-name">12345678901234:</th><td class="field-body">OK</td> </tr> </tbody> </table> ``` Increasing this default value of 14 to something more reasonable, like 50, seems sensible. Even when this is just another arbitrary value, since GitHub have a fixed total width, it seems sensible to not make it much more longer, since if the field name is too long it will look weird anyway.
On Tue, May 27, 2014 at 12:40:36PM -0700, Brandon Keepers wrote:
Updated, let me know if this is what you had in mind. |
Anything else I could do to convince you to merge this? :) |
LGTM. |
Merge? Maybe? Please? :) |
I'm on vacation right now, but will merge it next week if it hasn't been done before then. |
…-limit rst2html: Extend the field_name_limit to 50
Thanks, sorry for the delay! |
💃 |
Field lists are rendered weirdly in reST if the field name is longer that 14 characters. In this case the table cell where the field name is gets a
colspan=2
.For example this:
Gets translated to:
Increasing this default value of 14 to something more reasonable, like 50, seems sensible. Even when this is just another arbitrary value, since GitHub have a fixed total width, it seems sensible to not make it
much more longer, since if the field name is too long it will look weird anyway.