Skip to content

Commit 0b96946

Browse files
committed
Remvoing suggested inputs from revision labels
1 parent 455f571 commit 0b96946

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Samples.cshtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ else
179179
<form asp-page-handler="Upload" method="post">
180180
<div class="form-group">
181181
<label asp-for="Upload.RevisionTitle" class="text-muted"> Enter a sample title (Optional) </label>
182-
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" /> <br />
182+
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" autocomplete="off" /> <br />
183183
<textarea asp-for="Upload.sampleString" class="new-thread-comment-text form-control" rows="25" placeholder="Enter your markdown formatted usage sample here"></textarea>
184184
<input asp-for="Upload.ReviewId" hidden value="@Model.Review.ReviewId" />
185185
<input asp-for="Upload.RevisionNumber" hidden value="@Model.latestRevision" />
@@ -194,7 +194,7 @@ else
194194
<div class="tab-pane" id="md-file">
195195
<form asp-page-handler="Upload" method="post" enctype="multipart/form-data">
196196
<label asp-for="Upload.RevisionTitle" class="text-muted"> Enter a sample title (Optional) </label>
197-
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" /> <br />
197+
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" autocomplete="off" > <br />
198198
<input asp-for="Upload.ReviewId" hidden value="@Model.Review.ReviewId" />
199199
<input asp-for="Upload.RevisionNumber" hidden value="@Model.latestRevision" />
200200
<div class="form-group">
@@ -254,7 +254,7 @@ else
254254
<div class="modal-dialog modal-lg" role="document">
255255
<div class="modal-content">
256256
<div class="modal-header">
257-
<h5 class="modal-title">Update Usage Sample</h5>
257+
<h5 class="modal-title">Edit Usage Sample</h5>
258258
<button type="button" class="close" data-dismiss="modal">
259259
<span aria-hidden="true">&times;</span>
260260
</button>
@@ -266,7 +266,7 @@ else
266266
<div class="new-comment-content">
267267
<form asp-page-handler="Upload" method="post">
268268
<label asp-for="Upload.RevisionTitle" class="text-muted"> Enter a sample title (Optional) </label>
269-
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" /> <br />
269+
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" autocomplete="off" /> <br />
270270
<div class="form-group">
271271
<div class="new-sample-content">
272272
<textarea asp-for="Upload.updateString" class="new-thread-comment-text form-control" rows="25"></textarea>

src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Samples.cshtml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private async Task<CodeLineModel[]> ParseLines(string fileId, ReviewCommentsMode
174174
string lineContent = content[i];
175175

176176
// remove the newlines before codeblocks
177-
if (lineContent.StartsWith("<div class=\"code"))
177+
if (lineContent.StartsWith("<div class=\"code") || lineContent.StartsWith("<div style=") || lineContent.StartsWith("<div class=\"lang"))
178178
{
179179
lineContent = "";
180180
}

0 commit comments

Comments
 (0)