/[classpath]/gjdoc/src/gnu/classpath/tools/doclets/xmldoclet/HtmlRepairer.java
ViewVC logotype

Diff of /gjdoc/src/gnu/classpath/tools/doclets/xmldoclet/HtmlRepairer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by julian, Mon Nov 22 12:42:22 2004 UTC revision 1.4 by julian, Tue Nov 23 17:19:48 2004 UTC
# Line 119  public final class HtmlRepairer { Line 119  public final class HtmlRepairer {
119           tag = tag.substring(0, tag.length()-1);           tag = tag.substring(0, tag.length()-1);
120        }        }
121    
122          if (tag.length() < 1) {
123             printWarning("Deleting broken tag");
124             return;
125          }
126    
127        String tagName = tag.substring(isEndTag?1:0, isAtomTag?tag.length()-1:tag.length());        String tagName = tag.substring(isEndTag?1:0, isAtomTag?tag.length()-1:tag.length());
128        String tagAttributes = "";        String tagAttributes = "";
129    
# Line 563  public final class HtmlRepairer { Line 568  public final class HtmlRepairer {
568     }     }
569    
570     private String getContext() {     private String getContext() {
571        StringBuffer rc = new StringBuffer();        if (null != contextClass) {
572        rc.append(contextClass.qualifiedTypeName());           StringBuffer rc = new StringBuffer();
573        if (null != contextMember) {           rc.append(contextClass.qualifiedTypeName());
574           rc.append("."+contextMember.toString());           if (null != contextMember) {
575                rc.append("."+contextMember.toString());
576             }
577             return rc.toString();
578          }
579          else {
580             return null;
581        }        }
       return rc.toString();  
582     }     }
583    
584     private void printWarning(String msg) {     private void printWarning(String msg) {
585        if (null != warningReporter && !noWarn) {        if (null != warningReporter && !noWarn) {
586           warningReporter.printWarning("In "+getContext()+": "+msg);           String context = getContext();
587             if (null != context) {
588                warningReporter.printWarning("In "+getContext()+": "+msg);
589             }
590             else {
591                warningReporter.printWarning("In overview page: "+msg);
592             }
593        }        }
594     }     }
595    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26