javadoc: keep whitespaces in {@code} tags (IDEA-109997)

This commit is contained in:
anna
2013-11-26 18:51:19 +01:00
parent 02cabc4e84
commit d08af6dfed
5 changed files with 41 additions and 9 deletions
@@ -0,0 +1,10 @@
<html><head> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><small><b><a href="psi_element://Foo"><code>Foo</code></a></b></small><PRE>int <b>foo</b></PRE>
<pre>
<code>
class Clazzz {
def f[U](u: U) {}
val a = 1
}
</code>
</pre></body></html>
@@ -0,0 +1,14 @@
class Foo {
/**
* <pre>
* {@code
* class Clazzz {
* def f[U](u: U) {}
*
* val a = 1
* }
* }
* </pre>
*/
int foo;
}
@@ -72,6 +72,10 @@ public class JavaDocInfoGeneratorTest extends CodeInsightTestCase {
doTestField();
}
public void testCode() throws Exception {
doTestField();
}
public void testEnumConstantOrdinal() throws Exception {
PsiClass psiClass = getTestClass();
PsiField field = psiClass.getFields() [0];