Open strangerinla opened 9 months ago
There are also formatter problems: It formats the string <Run Text="123"/><Run Text="456"/> into separate lines which results in extra space between runs in output. It would also be cool to have hyperlink.
<Run Text="123"/><Run Text="456"/>
Originally posted by @strangerinla in https://github.com/AvaloniaUI/AvaloniaVS/discussions/417#discussioncomment-7586629
How to repeat this:
Create TextBlock wtih several <Run> elements in single line
<Run>
Build and run the project - TextBlock displays concatenation of Runs' text properties. No space between texts.
Execute "Format Document" command on axaml file edited in step 1 - <Run> controls split in different lines
Build and run the project - TextBlock content differs from step 2: text properties are separated by space
The key problem here is the formatter logic. Row <Run/><Run/> should not be formatted as <Run/>\n<Run/> as it produces different output result.
<Run/><Run/>
<Run/>\n<Run/>
I don't think we provide any formatting tools build-in the plugin.
Probably Visual Studio tries to force its own XML formatted here
There are also formatter problems: It formats the string
<Run Text="123"/><Run Text="456"/>
into separate lines which results in extra space between runs in output. It would also be cool to have hyperlink.Originally posted by @strangerinla in https://github.com/AvaloniaUI/AvaloniaVS/discussions/417#discussioncomment-7586629
How to repeat this:
Create TextBlock wtih several
<Run>
elements in single lineBuild and run the project - TextBlock displays concatenation of Runs' text properties. No space between texts.
Execute "Format Document" command on axaml file edited in step 1 -
<Run>
controls split in different linesBuild and run the project - TextBlock content differs from step 2: text properties are separated by space
The key problem here is the formatter logic. Row
<Run/><Run/>
should not be formatted as<Run/>\n<Run/>
as it produces different output result.