rst: fixing rst output processing