This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Split newlines in all params/fields for Machine and Run in run view.
ClosedPublic

Authored by marxin on Mar 20 2018, 6:20 AM.

Details

Summary

Let's split values with multiple lines in all fields in the view. Hope it's quite straightforward.

Diff Detail

Event Timeline

marxin created this revision.Mar 20 2018, 6:20 AM
marxin updated this revision to Diff 139263.Mar 21 2018, 1:58 AM

Move the template to utils.html and use it in v4_machine.html.

May I please remind a patch review.

MatzeB accepted this revision.Apr 24 2018, 9:30 AM

Looks good enought to commit, though I would recommend factoring things out differently:

lnt/server/ui/templates/utils.html
134–145

It feels a bit odd, that the macro is specifically designed to put <dt>/</dt> around the contents. I'd recommend going for a newline_to_br(value) macro and leaving the <td>s for the callers of the macros.

This revision is now accepted and ready to land.Apr 24 2018, 9:30 AM
marxin updated this revision to Diff 144315.Apr 27 2018, 5:25 AM

Thanks for review, I modified the patch in way you described.

This revision was automatically updated to reflect the committed changes.