Skip to content

Commit

Permalink
emacs: fix HTML urls to automatically load plain text
Browse files Browse the repository at this point in the history
When the URL ends in /stdio, tack on /text after it.

Review URL: http://codereview.chromium.org/5826002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69169 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
evan@chromium.org committed Dec 14, 2010
1 parent 5ddd1ea commit 0917cf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/emacs/trybot.el
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@
(clipboard-yank)
(setq url (buffer-string))))

;; TODO: fixup URL to append /text if necessary.
;; Append /text to the URL to get plain text output in the common
;; case of getting a URL to the HTML build log.
(when (equal "stdio" (car (last (split-string url "/"))))
(setq url (concat url "/text")))

(let ((type-hint (cond ((string-match "/win/" url) 'win)
((string-match "/mac/" url) 'mac)
Expand Down

0 comments on commit 0917cf3

Please sign in to comment.