Skip to content

Commit

Permalink
Merge pull request #48 from Ellerbach/fix-doclinktraslator
Browse files Browse the repository at this point in the history
Fix additional space created during translation when an exclamation mark is used
  • Loading branch information
Ellerbach authored Dec 8, 2023
2 parents 12becfd + c9c7225 commit 22916c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocLanguageTranslator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private static void TranslateMarkdown(string inputFile, string inputLanguage, st
if (links.Count > 0)
{
// We know that a space will be inserted sometimes
res = res.Replace("] (", "](").Replace("! [", "![");
res = res.Replace("] (", "](").Replace("! [", "![").Replace("[! ", "[!");
foreach (var link in links)
{
int firstLink = res.IndexOf("]()");
Expand Down

0 comments on commit 22916c8

Please sign in to comment.