std.string.newline is char[2], which means if you do "astring"~newline on a platform where newline is "\n" you'll get a lovely bonus Null character in your output. It should either be made char[1] when it is one char, char[2] when it's not, or just char[] for all cases.
Fixed in DMD 0.176 by making it char[1] when it's just \n.
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル