Skip to content

Instantly share code, notes, and snippets.

@abdnh
abdnh / __init__.py
Last active April 8, 2022 22:26
Adds an option to Anki's Basic Printing Support add-on to sort cards column-wise
# -*- coding: utf-8 -*-
# Copyright: Ankitects Pty Ltd and contributors
# License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html
#
# Exports the cards in the current deck to a HTML file, so they can be
# printed. Card styling is not included. Cards are printed in sort field
# order.
import re
import math