From 8adeab4b0ea68f7d1f51c77536fed6d24bb3bd1e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 26 Mar 2021 14:57:45 +1100 Subject: Cleanup: use code doxy command for Python snippet --- intern/ghost/intern/GHOST_IconX11.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'intern') diff --git a/intern/ghost/intern/GHOST_IconX11.h b/intern/ghost/intern/GHOST_IconX11.h index 615a7dae6b5..403d611b71d 100644 --- a/intern/ghost/intern/GHOST_IconX11.h +++ b/intern/ghost/intern/GHOST_IconX11.h @@ -24,7 +24,8 @@ #pragma once -/* +/** + * \code{.py} * import bpy * import textwrap * @@ -42,6 +43,7 @@ * print("%d,%d," % (w, h)) * text = ", ".join(["0x%x" % p for p in pixels]) * print(textwrap.fill(text, width=120), end=",\n") + * \endcode */ /** -- cgit v1.2.3