blob: 513204d2063af1c66d3eca7f2188a94593193b62 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 Tasktop Technologies and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* David Green - initial API and implementation
*******************************************************************************/
package org.eclipse.mylyn.internal.wikitext.html.core;
import org.eclipse.mylyn.wikitext.core.parser.Attributes;
import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder;
import org.eclipse.mylyn.wikitext.core.parser.DocumentBuilder.SpanType;
class SubstitutionWithoutCssSpanStrategy extends SubstitutionSpanStrategy {
SubstitutionWithoutCssSpanStrategy(SpanType type) {
super(type);
}
@Override
public void beginSpan(DocumentBuilder builder, SpanType unsupportedType, Attributes attributes) {
Attributes attributesCopy = attributes.clone();
attributesCopy.setCssStyle(null);
super.beginSpan(builder, unsupportedType, attributesCopy);
}
}