fix confusing deprecation warning

The warning before this patch is always `Format :html is deprecated, use :html`.