Ticket #2129 (closed enhancement: wontfix)

Opened 6 years ago

Last modified 5 years ago

left align the code tag

Reported by: johnjosephbachir Owned by: robmiller
Priority: lowest Milestone:
Component: Template Version: 2.0
Severity: trivial Keywords: code-tag style bg|dev-feedback has-patch
Cc:

Description

I think this is better, for lines that wrap anyway. I suppose one could argue either way.

Attachments

style.css.diff Download (272 bytes) - added by johnjosephbachir 6 years ago.
2129.diff Download (280 bytes) - added by robmiller 6 years ago.

Change History

  • Milestone changed from 2.0 to 2.1
  • Keywords code-tag style bg|dev-feedback added

isn't the code tag usually used inline?

It certainly is:

 http://www.w3.org/TR/REC-html40/struct/text.html#h-9.2.1

I'm pretty sure for code fragments that span multiple lines the correct usage is:

<pre>
<code>
void foo(bar) {
    baz();
}
</code>
</pre>

So, if you want them left-aligned, the text-align:left; should be applied to the <pre> in order to cascade down.

  • Status changed from new to assigned
  • Severity changed from minor to trivial
  • Component changed from Administration to Template
  • Summary changed from left allign the code tag to left align the code tag
  • Owner changed from anonymous to robmiller
  • Type changed from defect to enhancement

Style pre not code.

  • Keywords has-patch added

comment:7   matt5 years ago

  • Status changed from assigned to closed
  • Resolution set to wontfix
  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.