Skip to content

Commit 84434e1

Browse files
committed
We know we don't handle tables, yet.
1 parent 5968bfc commit 84434e1

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

sphinxlint.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,10 @@ def is_in_a_table(error, line):
204204

205205

206206
def check_paragraph(paragraph_lno, paragraph):
207+
if paragraph.count("|") > 4:
208+
return # we don't handle tables yet.
207209
error = role_missing_closing_backtick.search(paragraph)
208-
if error and not "|" in paragraph:
210+
if error:
209211
error_offset = paragraph[: error.start()].count("\n")
210212
yield paragraph_lno + error_offset, f"role missing closing backtick: {error.group(0)!r}"
211213
paragraph_without_roles = re.sub(normal_role, "", paragraph).replace("````", "")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
+-----------------------+-----------------------+-----------------------+
2+
| **Autolev** | **SymPy** | **Notes** |
3+
+=======================+=======================+=======================+
4+
| ``Constants C+`` | ``c = sm.symbols(‘c’, | Refer to SymPy |
5+
| | real=True, | :ref:`assumptions |
6+
| | nonnegative=True)`` | <assumptions_module>` |
7+
| | | for more information. |
8+
+-----------------------+-----------------------+-----------------------+
9+
| ``Constants a{2:4}`` | ``a2, a3, a4 = | |
10+
| | sm.symbols('a2 a3 a4',| |
11+
| | real=True)`` | |
12+
+-----------------------+-----------------------+-----------------------+

0 commit comments

Comments
 (0)