Skip to content

Commit 2348235

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[DrJones] Fix extra white spaces
The markdown renders the white spaces as new empty lines and it takes extra space. Bug: none Change-Id: Ifc9d6d243716fd4b51b5f328f981585713fb0028 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5934452 Auto-Submit: Nikolay Vitkov <[email protected]> Reviewed-by: Ergün Erdoğmuş <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]>
1 parent ddf1ffb commit 2348235

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

front_end/panels/freestyler/DrJonesNetworkAgent.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,16 +235,14 @@ TCP end time: 0
235235
SSL start time: 0
236236
SSL end time: 0
237237
Sending start: 800
238-
Sending end: 900
239-
`,
238+
Sending end: 900`,
240239
},
241240
{
242241
title: 'Request Initiator Chain',
243242
text: `- URL: https://www.initiator.com
244243
\t- URL: https://www.example.com
245244
\t\t- URL: https://www.example.com/1
246-
\t\t- URL: https://www.example.com/2
247-
`,
245+
\t\t- URL: https://www.example.com/2`,
248246
},
249247
],
250248
},
@@ -283,14 +281,12 @@ SSL end time: 0
283281
Sending start: 800
284282
Sending end: 900
285283
286-
287284
Request Initiator Chain:
288285
- URL: https://www.initiator.com
289286
\t- URL: https://www.example.com
290287
\t\t- URL: https://www.example.com/1
291288
\t\t- URL: https://www.example.com/2
292289
293-
294290
# User request
295291
296292
test`,

front_end/panels/freestyler/DrJonesNetworkAgent.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,7 @@ TCP end time: ${timing?.connectEnd}
242242
SSL start time: ${timing?.sslStart}
243243
SSL end time: ${timing?.sslEnd}
244244
Sending start: ${timing?.sendStart}
245-
Sending end: ${timing?.sendEnd}
246-
`;
245+
Sending end: ${timing?.sendEnd}`;
247246
}
248247

249248
function formatRequestInitiated(
@@ -272,7 +271,7 @@ function formatRequestInitiatorChain(request: SDK.NetworkRequest.NetworkRequest)
272271
}
273272
}
274273

275-
return initiatorChain;
274+
return initiatorChain.trim();
276275
}
277276

278277
export function formatNetworkRequest(request: SDK.NetworkRequest.NetworkRequest): string {

front_end/panels/freestyler/DrJonesPerformanceAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function createContextDetailsForDrJonesPerformanceAgent(
170170
return [
171171
{
172172
title: 'Selected stack trace',
173-
text: JSON.stringify(selectedStackTrace),
173+
text: JSON.stringify(selectedStackTrace).trim(),
174174
},
175175
];
176176
}

front_end/panels/freestyler/FreestylerAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ export class FreestylerAgent extends AiAgent {
529529
}
530530
}
531531

532-
return output;
532+
return output.trim();
533533
}
534534

535535
async * handleAction(action: string, rpcId?: number): AsyncGenerator<SideEffectResponse, ActionResponse, void> {

0 commit comments

Comments
 (0)