Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextBlock/Run Formatter problem #428

Open
strangerinla opened this issue Dec 4, 2023 · 2 comments
Open

TextBlock/Run Formatter problem #428

strangerinla opened this issue Dec 4, 2023 · 2 comments

Comments

@strangerinla
Copy link

strangerinla commented Dec 4, 2023

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 #417 (reply in thread)

How to repeat this:

  1. Create TextBlock wtih several <Run> elements in single line

  2. Build and run the project - TextBlock displays concatenation of Runs' text properties. No space between texts.
    изображение

  3. Execute "Format Document" command on axaml file edited in step 1 - <Run> controls split in different lines

  4. 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.

@maxkatz6
Copy link
Member

maxkatz6 commented Dec 5, 2023

I don't think we provide any formatting tools build-in the plugin.

@maxkatz6
Copy link
Member

maxkatz6 commented Dec 5, 2023

Probably Visual Studio tries to force its own XML formatted here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants