html-convert/src/main/java/org/netbeans/tools/tutorials/CustomAsciiDocDocumentBuilder.java [342:369]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected Block computeSpan(SpanType type, Attributes attributes) {
        switch (type) {
            case MARK:
                throw new IllegalStateException("Mark");
            case MONOSPACE:
                return new AsciiDocInlinePreformatted(null, this);
            case LINK:
                if (attributes instanceof LinkAttributes) {
                    LinkAttributes linkAttributes = (LinkAttributes) attributes;
                    if (linkAttributes.getHref() != null) {
                        if (linkAttributes.getHref().startsWith("#")) {
                            return new AsciiDocContentBlock("<<" + linkAttributes.getHref().substring(1) + ",", ">>", 0, 0);
                            /* This is an internal link */
                        }
                        return new LinkBlock((LinkAttributes) attributes);
                    } else if (linkAttributes.getId() != null) {
                        return new AsciiDocContentBlock("[[", "]]", 0, 1);
                    }
                }
                return new AsciiDocContentBlock("", "", 0, 0);
            case DELETED:
                return new AsciiDocContentBlock("[.line-through]#", "#", 0, 0);
            case UNDERLINED:
                return new AsciiDocContentBlock("[.underline]#", "#", 0, 0);
            default:
                return super.computeSpan(type, attributes);
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



tutorials-convert/src/main/java/org/netbeans/tools/tutorials/CustomAsciiDocDocumentBuilder.java [427:454]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	protected Block computeSpan(SpanType type, Attributes attributes) {
		switch (type) {
			case MARK:
				throw new IllegalStateException("Mark");
			case MONOSPACE:
				return new AsciiDocInlinePreformatted(null, this);
			case LINK:
				if (attributes instanceof LinkAttributes) {
					LinkAttributes linkAttributes = (LinkAttributes) attributes;
					if (linkAttributes.getHref() != null) {
						if (linkAttributes.getHref().startsWith("#")) {
							return new AsciiDocContentBlock("<<" + linkAttributes.getHref().substring(1) + ",", ">>", 0, 0);
							/* This is an internal link */
						}
						return new LinkBlock((LinkAttributes) attributes);
					} else if (linkAttributes.getId() != null) {
						return new AsciiDocContentBlock("[[", "]]", 0, 1);
					}
				}
				return new AsciiDocContentBlock("", "", 0, 0);
			case DELETED:
				return new AsciiDocContentBlock("[.line-through]#", "#", 0, 0);
			case UNDERLINED:
				return new AsciiDocContentBlock("[.underline]#", "#", 0, 0);
			default:
				return super.computeSpan(type, attributes);
		}
	}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



