From 0ccdfa29843a9c1fc97509661a87bc46dbc8072c Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Thu, 30 Jun 2016 15:48:54 -0700 Subject: [PATCH] Update libdparse to improve handling of align attributes --- libdparse | 2 +- src/astprinter.d | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libdparse b/libdparse index 5323bfc..6f98e08 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 5323bfc2c5f8303dee8ed3d66eeaa3c0944485f0 +Subproject commit 6f98e085edfdabe571fd57164370d3f27f452c52 diff --git a/src/astprinter.d b/src/astprinter.d index e3738dc..e0d309d 100644 --- a/src/astprinter.d +++ b/src/astprinter.d @@ -40,7 +40,14 @@ class XMLPrinter : ASTVisitor override void visit(const AlignAttribute alignAttribute) { - output.writeln(""); + if (alignAttribute.assignExpression is null) + output.writeln(""); + else + { + output.write(""); + } } override void visit(const AndAndExpression andAndExpression)