Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b67a87d

Browse files
cattoCopilot
andauthored
Support fixing indented bullet points in translated documents (#60913)
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
1 parent 262332f commit b67a87d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/languages/lib/correct-translation-content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function correctTranslatedContentStrings(
6464
// unexpanded. Rejoin the marker with its content. This corruption
6565
// affects every translated language (~47k bullets and ~11k cells in
6666
// total), so it lives in the universal pre-fixes block.
67-
content = content.replace(/^\* ?\n[ \t]+/gm, '* ')
67+
content = content.replace(/^([ \t]*)\* ?\n[ \t]+/gm, '$1* ')
6868
content = content.replace(/^\|[ \t]*\n[ \t]+/gm, '| ')
6969

7070
// --- Per-language fixes (es, ja, pt, zh, ru, fr, ko, de) ---

0 commit comments

Comments
 (0)