File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ jobs:
149149 const baseDocURL = 'https://sagemath-tobias.netlify.app/'
150150 const diffParagraphs = document.querySelectorAll('p.diff');
151151 diffParagraphs.forEach(paragraph => {
152- const rootURL = window.location.origin;
152+ const rootURL = window.location.origin + '/' ;
153153 const docAnchor = paragraph.querySelector('a');
154154 const path = docAnchor.textContent; // .href doesn't work
155155 const anchor = document.createElement('a');
@@ -174,7 +174,7 @@ jobs:
174174 match = re.search(r'^diff --git a/(.*) b/\1', block, flags=re.MULTILINE)
175175 if match:
176176 path = match.group(1)
177- out_blocks.append(f'<p class="diff"><a href="{path}">{path}</a>  ;</p>\n<pre><code class="language-diff">\n ' + html.escape(block).strip() + '\n </code></pre>')
177+ out_blocks.append(f'<p class="diff"><a href="{path}">{path}</a>&emsp ;</p>\n<pre><code class="language-diff">' + html.escape(block).strip() + '</code></pre>')
178178 output_text = '\n'.join(out_blocks)
179179 with open('./docs/diff.html', 'w') as f:
180180 f.write(output_text)
You can’t perform that action at this time.
0 commit comments