Issue #118 resolved

Unescaped characters remain in displayed fragments

Martin Robillard
created an issue

Some HTML characters such as '&' do not get properly escaped by the FragmetViewer, which attempts to display them as links. This results in an exception in the Fragment viewer (exception stack below).

To reproduce:

Create a new transcript. In the new transcript, add the sentence: "This & will cause a problem".

Select the sentence, right-click, and select "Add Code" and make a new code, e.g., "Problem"

Double-click on the code viewer, select "Problem", right-click, and select View Associated Fragments

Witness the problem.

Stack trace:

java.lang.IllegalArgumentException: Argument not valid The entity name must immediately follow the '&' in the entity reference. at org.eclipse.swt.SWT.error( at org.eclipse.ui.internal.forms.widgets.FormTextModel.parseInputStream( at org.eclipse.ui.internal.forms.widgets.FormTextModel.parseTaggedText( at org.eclipse.ui.forms.widgets.FormText.setText( at ca.mcgill.cs.swevo.qualyzer.editors.pages.CodeFragmentViewerPage.createTextBox( at ca.mcgill.cs.swevo.qualyzer.editors.pages.CodeFragmentViewerPage.buildSection( at ca.mcgill.cs.swevo.qualyzer.editors.pages.CodeFragmentViewerPage.createFormContent( at org.eclipse.ui.forms.editor.FormPage$ at org.eclipse.swt.custom.BusyIndicator.showWhile( at org.eclipse.ui.forms.editor.FormPage.createPartControl( at org.eclipse.ui.forms.editor.FormEditor.pageChange(

Comments (7)

  1. Log in to comment