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

crash pretty printing some XML #124

Closed
NSoiffer opened this issue Oct 15, 2021 · 1 comment
Closed

crash pretty printing some XML #124

NSoiffer opened this issue Oct 15, 2021 · 1 comment

Comments

@NSoiffer
Copy link

NSoiffer commented Oct 15, 2021

In Notepad++ v8.1.5 (32 bit)

Trying to pretty print or linearize the following (only thing in the file) triggers a PluginsManager::runPluginCommand Exception

[Update]: just spotted the problem: <mo)</mo> -- bad syntax shouldn't cause an exception

 <math>
  <msub>
    <mi></mi>
    <mi>p</mi>
  </msub>
  <mo>&#x2062;</mo>
  <mrow>
    <mmultiscripts>
      <mi>F</mi>
      <mi>q</mi>
      <none/>
      <mprescripts/>
      <mi>p</mi>
      <none/>
    </mmultiscripts>
    <mo>&#x2061;</mo>
    <mrow>
      <mo>(</mo>
      <mrow>
        <msub>
          <mi>a</mi>
          <mn>1</mn>
        </msub>
        <mo>,</mo>
        <mo>.</mo>
        <mo>.</mo>
        <mo>.</mo>
        <mo>,</mo>
        <msub>
          <mi>a</mi>
          <mi>p</mi>
        </msub>
        <mo>;</mo>
        <msub>
          <mi>b</mi>
          <mn>1</mn>
        </msub>
        <mo>,</mo>
        <mo>.</mo>
        <mo>.</mo>
        <mo>.</mo>
        <mo>,</mo>
        <msub>
          <mi>b</mi>
          <mi>q</mi>
        </msub>
        <mo>;</mo>
        <mi>z</mi>
      </mrow>
      <mo)</mo>
    </mrow>
  </mrow>
</math>
@morbac
Copy link
Owner

morbac commented Oct 17, 2021

I guess you're using SimpleXml pretty print engine. Go in menu "Plugins > XML Tools > Options..." and select "QuickXml" as "Formating engine" in "Pretty print options" group

@morbac morbac closed this as completed Oct 26, 2021
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