File tree 4 files changed +18
-4
lines changed
4 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 2
2
* Add support for :linenos: to code tabs (#22)
3
3
* Improve fallback for non-HTML builders (#19)
4
4
* Add spelling builder to list of builders (#20)
5
+ * Fix naming a tab as a number (#24)
5
6
6
7
v1.1.7
7
8
* Fix css files not being removed when tabs are not used on a page
Original file line number Diff line number Diff line change @@ -90,10 +90,13 @@ def run(self):
90
90
env = self .state .document .settings .env
91
91
92
92
args = self .content [0 ].strip ()
93
- try :
94
- args = json .loads (args )
95
- self .content .trim_start (1 )
96
- except ValueError :
93
+ if args .startswith ('{' ):
94
+ try :
95
+ args = json .loads (args )
96
+ self .content .trim_start (1 )
97
+ except ValueError :
98
+ args = {}
99
+ else :
97
100
args = {}
98
101
99
102
tab_name = nodes .container ()
Original file line number Diff line number Diff line change 12
12
< div class ="docutils container ">
13
13
Oranges</ div >
14
14
</ div >
15
+ < div class ="item sphinx-data-tab-3 docutils container ">
16
+ < div class ="docutils container ">
17
+ 404</ div >
18
+ </ div >
15
19
</ div >
16
20
< div class ="ui bottom attached sphinx-tab tab segment sphinx-data-tab-0 active docutils container ">
17
21
Apples are green, or sometimes red.</ div >
18
22
< div class ="ui bottom attached sphinx-tab tab segment sphinx-data-tab-1 docutils container ">
19
23
Pears are green.</ div >
20
24
< div class ="ui bottom attached sphinx-tab tab segment sphinx-data-tab-2 docutils container ">
21
25
Oranges are orange.</ div >
26
+ < div class ="ui bottom attached sphinx-tab tab segment sphinx-data-tab-3 docutils container ">
27
+ A number in the name.</ div >
22
28
</ div >
Original file line number Diff line number Diff line change 11
11
.. tab :: Oranges
12
12
13
13
Oranges are orange.
14
+
15
+ .. tab :: 404
16
+
17
+ A number in the name.
You can’t perform that action at this time.
0 commit comments