From: <ad...@us...> - 2010-11-07 14:48:14
|
Revision: 1179 http://jtidy.svn.sourceforge.net/jtidy/?rev=1179&view=rev Author: aditsu Date: 2010-11-07 14:48:06 +0000 (Sun, 07 Nov 2010) Log Message: ----------- fixed test 616744 - fixed ParseTagNames implementation Modified Paths: -------------- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParsePropertyImpl.java Modified: branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParsePropertyImpl.java =================================================================== --- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParsePropertyImpl.java 2010-11-07 14:29:25 UTC (rev 1178) +++ branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParsePropertyImpl.java 2010-11-07 14:48:06 UTC (rev 1179) @@ -445,21 +445,21 @@ { short tagType = Dict.TAGTYPE_INLINE; - if ("new-inline-tags".equals(option)) - { - tagType = Dict.TAGTYPE_INLINE; - } - else if ("new-blocklevel-tags".equals(option)) - { + switch (option) { + case InlineTags: + tagType = Dict.TAGTYPE_INLINE; + break; + case BlockTags: tagType = Dict.TAGTYPE_BLOCK; - } - else if ("new-empty-tags".equals(option)) - { + break; + case EmptyTags: tagType = Dict.TAGTYPE_EMPTY; - } - else if ("new-pre-tags".equals(option)) - { + break; + case PreTags: tagType = Dict.TAGTYPE_PRE; + break; + default: + throw new IllegalArgumentException("Unexpected option: " + option); } StringTokenizer t = new StringTokenizer(value, " \t\n\r,"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |