Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Bug with Ctrl-Shift-F and /** <pre>?
Bug with Ctrl-Shift-F and /** <pre>? [message #237364] Tue, 17 October 2006 10:55 Go to next message
Eclipse UserFriend
Originally posted by: rongwrook.yahoo.com

Write a javadoc comment with the <pre> tag, e.g.

/**
* <pre>
* Foo
* Fie
*/

Now hit Ctrl-Shift-F (with no selection, so it formats the whole
file). Each time you do this, the text of the comment gets indented,
so that after repeated Ctrl-Shift-F's you have

/**
* <pre>
* Foo
* Fie
*/

Is this a bug? Is it already familiar to anyone? Is there a workaround?

Thanks
jim

PS
Curiously, it doesn't do this if you only have one line, e.g.

/**
* <pre>
* Foo
*/
Re: Bug with Ctrl-Shift-F and /** <pre>? [message #237370 is a reply to message #237364] Tue, 17 October 2006 11:41 Go to previous message
Eclipse UserFriend
Jim Goodwin wrote:

> Write a javadoc comment with the <pre> tag, e.g.
>
> /**
> * <pre>
> * Foo
> * Fie
> */
>
> Now hit Ctrl-Shift-F (with no selection, so it formats the whole
> file). Each time you do this, the text of the comment gets indented,
> so that after repeated Ctrl-Shift-F's you have
>
> /**
> * <pre>
> * Foo
> * Fie
> */
>
> Is this a bug? Is it already familiar to anyone?

Yes, the bug is known - check bugzilla (JDT Core component).

Dani

> Is there a workaround?
>
> Thanks
> jim
>
> PS
> Curiously, it doesn't do this if you only have one line, e.g.
>
> /**
> * <pre>
> * Foo
> */
Previous Topic:enhance the Java Editor
Next Topic:How can I use JDT's "Superclass Selection" and "Implemented Interfaces Selection"
Goto Forum:
  


Current Time: Sun Jul 27 11:09:55 EDT 2025

Powered by FUDForum. Page generated in 0.03575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top