Fix Issue 13212 - Windows line endings handled incorrectly by ddoc macros

Handle \r as \n in macro definitions to prevent a trailing carriage
return on a macro with an empty line following it.
Merge pull request #3829 from ntrel/macro-cr

Fix Issue 13212 - Trailing Windows line endings not stripped from .ddoc macros