Skip to content

Commit

Permalink
pad entries so remain visible on self link
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcarlisle committed Nov 10, 2024
1 parent a9720a0 commit fb79c36
Show file tree
Hide file tree
Showing 3 changed files with 284 additions and 282 deletions.
4 changes: 2 additions & 2 deletions intent-examples/addmathcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def ApplyMathCAT (i,mml,firstln):
i=i+1
if(i % 3 == 2):
print("<tr>")
print("<td>")
print('<td class="pad">')
print(mmltd)
print("</td>")
if(i % 3 == 2 or i % 3 == 0):
Expand All @@ -117,4 +117,4 @@ def ApplyMathCAT (i,mml,firstln):
mmltd=re.sub(r'<t(d|h)([^<>]*)>([^<>]*)</t[dh]>\s*</tr>',
selflink,
mmltd)
print (mmltd,end="")
print (mmltd.replace('<td','<td class="pad"'),end="")
3 changes: 2 additions & 1 deletion intent-examples/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
tbody th {width:2em;}
math{font-size:120%;margin:.2em;}
tr>td {border:solid thin black;vertical-align:top;}
td.pad {padding-top:1em;}
div.mathcat{
background-color:white;padding:.2em;
margin:-.2em .1em 1em .1em;
Expand Down Expand Up @@ -142,7 +143,7 @@ <h1>Intent Examples</h1>
<mn intent=':roman-numeral'>X</mn><mo>,</mo><mn intent=':roman-numeral'>XVI</mn>
</math>
</td>
<td>\text{XVI}</td>
<td>\text{X},\text{XVI}</td>
<td>Roman Numerals</td>
</tr>
<tr>
Expand Down
Loading

0 comments on commit fb79c36

Please sign in to comment.