/[classpath]/gjdoc/src/gnu/classpath/tools/gjdoc/DocImpl.java
ViewVC logotype

Diff of /gjdoc/src/gnu/classpath/tools/gjdoc/DocImpl.java

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

revision 1.16 by julian, Fri Nov 26 13:29:56 2004 UTC revision 1.17 by julian, Fri Dec 3 19:05:38 2004 UTC
# Line 632  public abstract class DocImpl implements Line 632  public abstract class DocImpl implements
632        if (name.equals("text") || name.equals("link")) {        if (name.equals("text") || name.equals("link")) {
633           ((List)tags.get("inline")).add(tag);           ((List)tags.get("inline")).add(tag);
634           if (isFirstSentence) {           if (isFirstSentence) {
635              ((List)tags.get("first")).add(tag);                if (name.equals("text")) {
636                   String txt = ((TextTagImpl)tag).getText();
637                   Tag newTag;
638                   if (txt.startsWith("<p>")) {
639                      newTag = new TextTagImpl(txt.substring(3));
640                   }
641                   else if (txt.endsWith("</p>")) {
642                      newTag = new TextTagImpl(txt.substring(0, txt.length() - 4));
643                   }
644                   else {
645                      newTag = tag;
646                   }
647                   ((List)tags.get("first")).add(newTag);
648                  
649                }
650                else {
651                   ((List)tags.get("first")).add(tag);
652                }
653           }           }
654        }        }
655    
# Line 727  public abstract class DocImpl implements Line 744  public abstract class DocImpl implements
744     {     {
745        this.position = position;        this.position = position;
746     }     }
747    
748       public void setPosition(SourcePosition position)
749       {
750          this.position = position;
751       }
752  }  }
753    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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