Skip to content

Remove a space previous a tooltip text#17194

Merged
k8s-ci-robot merged 2 commits intokubernetes:masterfrom
bells17:remove-space-previous-tooltip-text
Nov 6, 2019
Merged

Remove a space previous a tooltip text#17194
k8s-ci-robot merged 2 commits intokubernetes:masterfrom
bells17:remove-space-previous-tooltip-text

Conversation

@bells17
Copy link
Copy Markdown
Contributor

@bells17 bells17 commented Oct 25, 2019

#15920 fixed unexpected line breaks for localized glossary tooltips.
But an unexpected space previous a tooltip text exists.

12132131Kubernetesコンポーネント_-_Kubernetes

So I trimmed a space.

123131スクリーンショット_2019_10_26_3_19

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. sig/docs Categorizes an issue or PR as relevant to SIG Docs. labels Oct 25, 2019
@netlify
Copy link
Copy Markdown

netlify bot commented Oct 25, 2019

Deploy preview for kubernetes-io-master-staging ready!

Built with commit 3c74dc1

https://deploy-preview-17194--kubernetes-io-master-staging.netlify.com

Copy link
Copy Markdown
Contributor

@sftim sftim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me.

{{- with (where $glossaryBundle.Translations ".Lang" . ) -}}
{{ $p := (index . 0) }}{{ $pages = $pages | lang.Merge ($p.Resources.ByType "page") }}{{ end }}
{{ end }}
{{- range site.Params.language_alternatives -}}{{- with (where $glossaryBundle.Translations ".Lang" . ) -}}{{ $p := (index . 0) }}{{ $pages = $pages | lang.Merge ($p.Resources.ByType "page") }}{{ end }}{{ end }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hello @bells17. Thanks for looking into this issue.
Is it possible to fix this issue without taking away the indentation of the template code?
For example,
{{- and -}} should trim white space, https://golang.org/pkg/text/template#hdr-Text_and_spaces.
I have not tested where the template formatting is needed or if there is a bug.

{{- $pages = $pages | lang.Merge ($p.Resources.ByType "page") -}} or possibly another line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kbhawkey, thank you for your comment.
I improved this code, Please review it again.

@k8s-ci-robot k8s-ci-robot requested a review from gochist October 28, 2019 14:23
@gochist
Copy link
Copy Markdown
Contributor

gochist commented Oct 29, 2019

/lgtm
/assign @bradtopol

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 29, 2019
@kbhawkey
Copy link
Copy Markdown
Contributor

/lgtm

@bradtopol
Copy link
Copy Markdown
Contributor

I'm assigning @jimangel just to double check this
/assign @jimangel

@jimangel
Copy link
Copy Markdown
Member

jimangel commented Nov 6, 2019

/lgtm
/approve

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jimangel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 6, 2019
@k8s-ci-robot k8s-ci-robot merged commit 5306b4e into kubernetes:master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants