Giter Site home page Giter Site logo

Regression: New formatter block formatting rules leaves ending tags of nested HTML block elements on same line; breaks existing formatting functionality. about eclipse.jdt.core HOT 4 CLOSED

garretwilson avatar garretwilson commented on July 17, 2024
Regression: New formatter block formatting rules leaves ending tags of nested HTML block elements on same line; breaks existing formatting functionality.

from eclipse.jdt.core.

Comments (4)

garretwilson avatar garretwilson commented on July 17, 2024

It looks like this is still broken in Eclipse 2023-09 RC1. @jjohnstn can you give me a status on this? I was so excited after your work on #991, thinking that after so many years it might finally be addressed. But I'm not sure if any progress has been made since Eclipse 2023-06. Any news?

from eclipse.jdt.core.

garretwilson avatar garretwilson commented on July 17, 2024

Oh no! It would appear that the changes made in #991 actually caused a regression in the existing formatting!

Before we would have Javadocs like this:

/**
 * <p>
 * blah blah blah
 * </p>
 * 
 * <pre>
 * <code>com.example.FooConcernProvider</code>
 * </pre>
 * <p>
 * more blah blah blah
 * </p>
 */

Now after #991, at least as of Eclipse 2023-09 RC1, Eclipse will unwrap the </pre> block tag, resulting in this:

/**

 * <pre>
 * <code>com.example.FooConcernProvider</code> </pre>

 */

See Javadocs in Csar.java as an example.

Now after almost a decade, not only is the issue not fixed, it is now broken worse than it was before. 😢

If you can't fix it, can at least reverse the changes in #991 so that existing formatting won't be broken?

from eclipse.jdt.core.

jjohnstn avatar jjohnstn commented on July 17, 2024

@garretwilson I'll take a look at it once all the postponed 4.30 M1 changes (too late for M3) are merged.

from eclipse.jdt.core.

garretwilson avatar garretwilson commented on July 17, 2024

I'll take a look at it once all the postponed 4.30 M1 changes (too late for M3) are merged.

Fair enough. Thank you!

from eclipse.jdt.core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.