Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 78767 Details for
Bug 203993
Schema HTML generator cause CHKPII errors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
patch
patch203993.txt (text/plain), 2.49 KB, created by
Adam Archer
on 2007-09-19 12:17:04 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Adam Archer
Created:
2007-09-19 12:17:04 EDT
Size:
2.49 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.pde.core >Index: src/org/eclipse/pde/internal/core/builders/SchemaTransformer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders/SchemaTransformer.java,v >retrieving revision 1.8 >diff -u -r1.8 SchemaTransformer.java >--- src/org/eclipse/pde/internal/core/builders/SchemaTransformer.java 17 Sep 2007 19:31:27 -0000 1.8 >+++ src/org/eclipse/pde/internal/core/builders/SchemaTransformer.java 19 Sep 2007 16:14:17 -0000 >@@ -141,7 +141,7 @@ > transformSection("Examples:", IDocumentSection.EXAMPLES); //$NON-NLS-1$ > transformSection("API Information:", IDocumentSection.API_INFO); //$NON-NLS-1$ > transformSection("Supplied Implementation:", IDocumentSection.IMPLEMENTATION); //$NON-NLS-1$ >- fWriter.println("<br/>"); //$NON-NLS-1$ >+ fWriter.println("<br>"); //$NON-NLS-1$ > fWriter.println("<p class=\"note SchemaCopyright\">"); //$NON-NLS-1$ > transformSection(null, IDocumentSection.COPYRIGHT); > fWriter.println("</p>"); //$NON-NLS-1$ >@@ -295,16 +295,17 @@ > String description = element.getDescription(); > > if (description != null && description.trim().length() > 0) { >- fWriter.println("<p class=\"ConfigMarkupElementDesc\">"); //$NON-NLS-1$ >+ String elementType = containsParagraph(description) ? "div" : "p"; >+ fWriter.println("<" + elementType + " class=\"ConfigMarkupElementDesc\">"); //$NON-NLS-1$ > transformText(description); >- fWriter.println("</p>"); //$NON-NLS-1$ >+ fWriter.println("</" + elementType + ">"); //$NON-NLS-1$ > } > // end of inserted desc for element > if (attributes.length == 0){ >- fWriter.println("<br/><br/>"); //$NON-NLS-1$ >+ fWriter.println("<br><br>"); //$NON-NLS-1$ > return; > } else if (description != null && description.trim().length() > 0){ >- fWriter.println("<br/>"); //$NON-NLS-1$ >+ fWriter.println("<br>"); //$NON-NLS-1$ > } > > fWriter.println("<ul class=\"ConfigMarkupAttlistDesc\">"); //$NON-NLS-1$ >@@ -325,7 +326,15 @@ > } > fWriter.println("</ul>"); //$NON-NLS-1$ > // adding spaces for new shifted view >- fWriter.print("<br/>"); //$NON-NLS-1$ >+ fWriter.print("<br>"); //$NON-NLS-1$ >+ } >+ >+ private boolean containsParagraph(String input) { >+ if (input.indexOf("<p>") != -1) >+ return true; >+ if (input.indexOf("</p>") != -1) >+ return true; >+ return false; > } > > private void appendAttlist(ISchemaAttribute att, int maxWidth) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203993
: 78767