summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/notes.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-04-01 12:46:12 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-04-01 12:46:12 +0200
commit13de7371cc88e498b00ed00f05db97da9d98ce4b (patch)
treeb603f548f1600e67d1a1f4e941575b88b1fb81e5 /crawl-ref/source/notes.cc
parent86223b4241bdd17c447ed86a80ff944b4ddb6a94 (diff)
downloadcrawl-ref-13de7371cc88e498b00ed00f05db97da9d98ce4b.tar.gz
crawl-ref-13de7371cc88e498b00ed00f05db97da9d98ce4b.zip
Ravage std::setw() as well.
Diffstat (limited to 'crawl-ref/source/notes.cc')
-rw-r--r--crawl-ref/source/notes.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/notes.cc b/crawl-ref/source/notes.cc
index ed05ef5b4a..fcf9b91f09 100644
--- a/crawl-ref/source/notes.cc
+++ b/crawl-ref/source/notes.cc
@@ -254,11 +254,11 @@ std::string Note::describe(bool when, bool where, bool what) const
if (where)
{
if (!place_abbrev.empty())
- result << "| " << std::setw(MAX_NOTE_PLACE_LEN) << std::left
- << place_abbrev << " | ";
+ result << "| " << chop_string(place_abbrev, MAX_NOTE_PLACE_LEN)
+ << " | ";
else
- result << "| " << std::setw(MAX_NOTE_PLACE_LEN) << std::left
- << short_place_name(packed_place) << " | ";
+ result << "| " << chop_string(short_place_name(packed_place),
+ MAX_NOTE_PLACE_LEN) << " | ";
}
if (what)