Skip to content

Commit 4ae7aef

Browse files
committed
Tweak
1 parent 7e2884d commit 4ae7aef

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

examples/document.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ Document
33
========
44
A model for documents
55

6-
Allowed parameters
7-
==================
6+
**Allowed parameters**
87

98
=============== =========== ====================================
109
Allowed field Data Type Description
@@ -15,8 +14,7 @@ Allowed field Data Type Description
1514
**notes** str *Human readable notes*
1615
=============== =========== ====================================
1716

18-
Allowed children
19-
================
17+
**Allowed children**
2018

2119
=============== ===================== ==============================
2220
Allowed child Data Type Description
@@ -29,8 +27,7 @@ Section
2927
=======
3028
A model of a section of the document. Will contain a Paragraph or two
3129

32-
Allowed parameters
33-
==================
30+
**Allowed parameters**
3431

3532
=============== =========== ======================
3633
Allowed field Data Type Description
@@ -39,8 +36,7 @@ Allowed field Data Type Description
3936
**notes** str *Human readable notes*
4037
=============== =========== ======================
4138

42-
Allowed children
43-
================
39+
**Allowed children**
4440

4541
=============== ========================= ================
4642
Allowed child Data Type Description
@@ -53,8 +49,7 @@ Paragraph
5349
=========
5450
A model of a paragraph
5551

56-
Allowed parameters
57-
==================
52+
**Allowed parameters**
5853

5954
=============== =========== =================================================
6055
Allowed field Data Type Description

modelspec/BaseTypes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ def insert_links(text, format=MARKDOWN_FORMAT):
422422
if format == MARKDOWN_FORMAT:
423423
doc_string += "### Allowed parameters\n<table>\n"
424424
if format == RST_FORMAT:
425-
ap = "Allowed parameters"
426-
doc_string += "%s\n%s\n\n" % (ap,"="*len(ap))
425+
ap = "**Allowed parameters**"
426+
doc_string += "%s\n\n" % (ap)
427427
table_info = []
428428
if format == DICT_FORMAT:
429429
doc_dict[name]["allowed_parameters"] = {}
@@ -481,8 +481,8 @@ def insert_links(text, format=MARKDOWN_FORMAT):
481481
if format == MARKDOWN_FORMAT:
482482
doc_string += "#### Allowed children\n\n<table>\n"
483483
if format == RST_FORMAT:
484-
ap = "Allowed children"
485-
doc_string += "%s\n%s\n\n" % (ap,"="*len(ap))
484+
ap = "**Allowed children**"
485+
doc_string += "%s\n\n" % (ap)
486486
table_info = []
487487
if format == DICT_FORMAT:
488488
doc_dict[name]["allowed_children"] = {}

0 commit comments

Comments
 (0)