imathis/octopress — Issue #461: Author not printed in blockquote
Author: scito
Created: 2012-03-03 06:39:00+00:00
State: open

According to http://octopress.org/docs/plugins/blockquote/ a quote can have an author without further information, e.g.

```
{% blockquote Nelson Mandela %}
It always seems impossible until it is done.
{% endblockquote %}
```

However, the author is not printed of the above quote with the current master.

This feature was added in 967eeb46e8f9bb25a382c52f1f36de59b8f0d1cb.

The following change in blockquote.rb fixed it for me

```ruby
if $1 =~ /([^,]+),([^,]+)/
@by = $1
@title = $2.titlecase
elsif markup =~ Author
@by = $1
end
```

instead of

```ruby
if $1 =~ /([^,]+),([^,]+)/
@by = $1
@title = $2.titlecase
else
@by = $1
end
```

In the latter case, ```$1``` seems always to be empty in the ```else```.