Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/github/commands/rest2html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ SETTINGS = {
'initial_header_level': 2,
'report_level': 5,
'syntax_highlight' : 'none',
'math_output' : 'latex'
'math_output' : 'latex',
'field_name_limit': 50,
}

class GitHubHTMLTranslator(HTMLTranslator):
Expand Down
9 changes: 9 additions & 0 deletions test/markups/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,12 @@ Source https://github.com/tony/pullv

.. image:: https://scan.coverity.com/projects/621/badge.svg
:alt: Coverity Scan Build Status

Field list
----------

:123456789 123456789 123456789 123456789 123456789 1: Uh-oh! This name is too long!
:123456789 123456789 123456789 123456789 1234567890: this is a long name,
but no problem!
:123456789 12345: this is not so long, but long enough for the default!
:123456789 1234: this should work even with the default :)
19 changes: 19 additions & 0 deletions test/markups/README.rst.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ <h2 class="subtitle" id="subtitle">Subtitle</h2>
<p class="topic-title first">Table of Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#header-2" id="id1">Header 2</a></li>
<li><a class="reference internal" href="#field-list" id="id2">Field list</a></li>
</ul>
</div>
<h2><a class="toc-backref" href="#id1">Header 2</a></h2>
Expand Down Expand Up @@ -40,3 +41,21 @@ <h2><a class="toc-backref" href="#id1">Header 2</a></h2>
<a class="reference external image-reference" href="https://scan.coverity.com/projects/621"><img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
</a>
<img alt="Coverity Scan Build Status" src="https://scan.coverity.com/projects/621/badge.svg">
<h2><a class="toc-backref" href="#id2">Field list</a></h2>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field"><th class="field-name" colspan="2">123456789 123456789 123456789 123456789 123456789 1:</th></tr>
<tr class="field"><td>&nbsp;</td><td class="field-body">Uh-oh! This name is too long!</td>
</tr>
<tr class="field"><th class="field-name">123456789 123456789 123456789 123456789 1234567890:</th><td class="field-body">this is a long name,
but no problem!</td>
</tr>
<tr class="field"><th class="field-name">123456789 12345:</th><td class="field-body">this is not so long, but long enough for the default!</td>
</tr>
<tr class="field"><th class="field-name">123456789 1234:</th><td class="field-body">this should work even with the default :)</td>
</tr>
</tbody>
</table>