1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-29 08:29:52 +00:00

Minor fixes

HTML output should have had double quotes around internal anchors.
(Chrome and Edge didn't complain, but the w3c validator wasn't
happy.)

Made the text areas in the load-time problem report dialogs
scrollable.

Updated the manual.
This commit is contained in:
Andy McFadden 2019-09-21 18:49:03 -07:00
parent 7fcd5c2800
commit 488df3e68e
4 changed files with 12 additions and 7 deletions

View File

@ -699,7 +699,7 @@ namespace SourceGen {
return null;
}
string linkified = "<a href=#" + LABEL_LINK_PREFIX + sym.Label + ">" +
string linkified = "<a href=\"#" + LABEL_LINK_PREFIX + sym.Label + "\">" +
sym.Label + "</a>";
return TextUtil.EscapeHTML(operand).Replace(sym.Label, linkified);
}
@ -720,7 +720,7 @@ namespace SourceGen {
sb.Append("<table>\r\n");
}
sb.Append(" <tr>");
sb.Append("<td><a href=#" + LABEL_LINK_PREFIX + sym.Label + ">" +
sb.Append("<td><a href=\"#" + LABEL_LINK_PREFIX + sym.Label + "\">" +
sym.Label + "</a></td>");
sb.Append("<td><code>" + mFormatter.FormatHexValue(sym.Value, 2) + "</code></td>");
sb.Append("</tr>\r\n");

View File

@ -109,9 +109,12 @@ executable.</p>
with all configuration files and libraries
<li>Merlin 32: <code>Merlin32.exe</code>
</ul>
<p>The "column widths" section allows you to specify the width of the
label, opcode, operand, and comment fields. If the width is less than 1,
or isn't a valid number, 1 will be used.</p>
<p>The "column widths" section allows you to specify the minimum
width of the label, opcode, operand, and comment fields. If the width
is less than 1, or isn't a valid number, 1 will be used. These are
not hard stops: if the contents of a field are too wide, the contents
of the next column will be pushed over. (The comment field width is
not currently being used, but may be used to fold lines in the future.)</p>
<p>When "show cycle counts" is checked, every instruction line will have
an end-of-line comment that indicates the number of cycles required for

View File

@ -29,7 +29,8 @@ limitations under the License.
<TextBox Margin="0,8,0,0" IsReadOnly="True"
Width="540" MaxLines="1" Text="{Binding PathName}"/>
<TextBlock Margin="0,8,0,0" Text="There was a problem:"/>
<TextBox Margin="0,8,0,0" IsReadOnly="True" Text="{Binding Message}"/>
<TextBox Margin="0,8,0,0" IsReadOnly="True" Text="{Binding Message}"
ScrollViewer.CanContentScroll="True"/>
<DockPanel Margin="0,8,0,0" LastChildFill="False">
<TextBlock DockPanel.Dock="Left" Text="Do you want to locate the data file?"/>
<Button DockPanel.Dock="Right" Content="Cancel" Width="70" Margin="8,0,0,0" IsCancel="True"/>

View File

@ -28,7 +28,8 @@ limitations under the License.
<DockPanel LastChildFill="False" Margin="8">
<TextBlock DockPanel.Dock="Top">Problems were detected while loading the project file:</TextBlock>
<TextBox Name="messageTextBox" DockPanel.Dock="Top" Margin="0,8,0,0"
Width="540" Height="110" IsReadOnly="True" TextWrapping="Wrap" Text=""/>
Width="540" Height="110" IsReadOnly="True" TextWrapping="Wrap" Text=""
VerticalScrollBarVisibility="Auto"/>
<TextBlock Name="invalidDiscardLabel" DockPanel.Dock="Top" Margin="0,8,0,0" Foreground="Red">
Invalid data items will be discarded when you save the project.
</TextBlock>